Skip to content

Add a neutral YAML configuration API for native consumers - #125

Draft
BenCodez wants to merge 4 commits into
mainfrom
cez/1fe4ce81
Draft

BenCodez wants to merge 4 commits into
mainfrom
cez/1fe4ce81

Conversation

@BenCodez

@BenCodez BenCodez commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Native consumers can load and edit YAML through the public core.config.YamlConfiguration facade without importing Configurate nodes or platform APIs. It supports typed reads, sections and snapshots, classpath defaults for missing files, reload and revision-checked atomic updates. Existing files, including empty files, remain authoritative. Failed reloads and writes preserve the last good snapshot, and updates retain unknown keys.

File operations are synchronous and caller-scheduled. Missing-file initialization requires same-directory hard links. If cleanup fails after publication, the new file remains valid and a staged sibling may need cleanup. Same-classloader instances coordinate writes to the same path; cross-process coordination remains the application's responsibility. Case-insensitive reads retain first-key precedence, while writes use exact keys. There is no default overlay or lossless comment round-trip.

Hosted Maven validated head ea69f3b6 with 483 unit tests with one skip and three full-JAR and one shared-JAR artifact check passed. There were zero failures or errors. Build log Local validation also passed 55 focused tests; the packaged shared JAR ran the consumer fixture without platform classes. Downstream mod embedding and native acceptance remain separate.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b55033fa-2ff9-43cb-9069-f84597eba038
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BenCodez BenCodez changed the title Document and verify shared YAML configuration for NeoForge consumers Add a neutral YAML configuration API for native consumers Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant